# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-flexmock
pkgver=0.11.3
pkgrel=0
pkgdesc="Testing library for creating mocks, stubs and fakes"
url="https://github.com/flexmock/flexmock"
license="BSD-2-Clause"
arch="noarch"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://github.com/flexmock/flexmock/archive/$pkgver/py3-flexmock-$pkgver.tar.gz"
builddir="$srcdir/flexmock-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD"/build/lib pytest
}

package() {
	python3 setup.py install --root="$pkgdir" --skip-build
}

sha512sums="
58c84317fb687fd708db7c909fe7109b8b9c37a932fd1a46c9f62d28bbcc56a807b35a6790bf1393289f85fdffdfa2367f7ccc05bff260a167731471a50d2685  py3-flexmock-0.11.3.tar.gz
"
